package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetPayWayDTO;
import com.jishuo.nontax.bean.message.SetPayerTypeDTO;
import lombok.Data;

import java.io.Serializable;


/**
 * 缴款方式
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class PayerTypeVO implements Serializable {
	private static final long serialVersionUID = 1L;

    private Long cantonid;
    private Long unitid;
    private Long payertypeid;
    private String payertypecode;
    private String payertypename;
    private String state;
    private Integer isenable;
    private String writetime;

	public PayerTypeVO(){}

	public PayerTypeVO(SetPayerTypeDTO bean){
	    if(bean.getCantonid()!=null){
            this.cantonid = Long.valueOf(bean.getCantonid());

        }
	    if(bean.getUnitid()!=null){
	        this.unitid = Long.valueOf(bean.getUnitid());
        }
	    if(bean.getPayertypeid()!=null){
	        this.payertypeid=Long.valueOf(bean.getPayertypeid());
        }
        this.payertypecode = bean.getPayertypecode();
        this.payertypename=bean.getPayertypename();
    }
}
